home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 2: Applications / Linux Cubed Series 2 - Applications.iso / editors / emacs / xemacs / xemacs-1.004 / xemacs-1 / xemacs-19.13 / man / lispref / Makefile < prev    next >
Encoding:
Makefile  |  1995-07-10  |  3.3 KB  |  123 lines

  1. # Makefile for the   GNU Emacs Lisp Reference Manual.
  2. #
  3. # based on FSF Makefile, 11 August 1990
  4. # Modified by Ben Wing, February 1994
  5. # merged with Makefile for ELisp Manual 2.4
  6.  
  7. # Redefine `TEX' if `tex' does not invoke plain TeX. For example:
  8. # TEX=platex
  9.  
  10. TEX=tex
  11.  
  12. # Where the TeX macros are kept:
  13. texmacrodir = /usr/local/lib/tex/macros
  14.  
  15. # Where the Emacs hierarchy lives ($EMACS in the INSTALL document for Emacs.)
  16. # For example: 
  17. # emacslibdir = /usr/local/gnu/lib/emacs
  18.  
  19. # Directory where Emacs is installed, by default:
  20. emacslibdir = /usr/local/emacs
  21.  
  22. # Unless you have a nonstandard Emacs installation, these shouldn't have to 
  23. # be changed.
  24. prefix = /usr/local
  25. infodir = ${prefix}/info
  26.  
  27. # The name of the manual:
  28.  
  29. VERSION=2.4
  30. NAME=lispref
  31. manual = elisp-manual-19-$(VERSION)
  32.  
  33. # Uncomment this line for permuted index.
  34. # permuted_index = 1 
  35.  
  36. # List of all the texinfo files in the manual:
  37.  
  38. srcs = abbrevs.texi annotations.texi back.texi backups.texi buffers.texi \
  39.   commands.texi compile.texi control.texi debugging.texi \
  40.   devices.texi dialog.texi display.texi edebug-inc.texi edebug.texi \
  41.   errors.texi eval.texi extents.texi faces.texi files.texi frames.texi \
  42.   functions.texi glyphs.texi help.texi hooks.texi index.texi internals.texi \
  43.   internationalization.texi intro.texi keymaps.texi lispref.texi lists.texi \
  44.   loading.texi locals.texi macros.texi maps.texi markers.texi menus.texi \
  45.   minibuf.texi modes.texi mouse.texi numbers.texi objects.texi os.texi \
  46.   positions.texi processes.texi scrollbars.texi searching.texi sequences.texi \
  47.   specifiers.texi streams.texi strings.texi symbols.texi syntax.texi \
  48.   text.texi tips.texi toolbar.texi tooltalk.texi variables.texi \
  49.   windows.texi x-windows.texi index.unperm index.perm
  50.  
  51. all: ../../info/$(NAME).info
  52.  
  53. $(NAME).dvi: $(srcs) index.texi ../texindex
  54.     # Avoid losing old contents of aux file entirely.
  55.     -mv $(NAME).aux $(NAME).oaux
  56.     # First shot to define xrefs:
  57.     $(TEX) $(NAME).texi
  58.     if [ a${permuted_index} != a ]; \
  59.     then \
  60.       ./permute-index; \
  61.       mv permuted.fns $(NAME).fns; \
  62.     else \
  63.       ../texindex $(NAME).??; \
  64.     fi
  65.     $(TEX) $(NAME).texi
  66.  
  67. index.texi:
  68.     if [ a${permuted_index} != a ]; \
  69.     then \
  70.       ln -s index.perm index.texi; \
  71.     else \
  72.       ln -s index.unperm index.texi; \
  73.     fi
  74.  
  75. ../../info/$(NAME).info: $(srcs) index.texi ../makeinfo
  76.     ../makeinfo $(NAME).texi
  77.  
  78. mostlyclean:
  79.     rm -f *.toc *.aux *.log *.cp *.cps *.fn *.fns *.tp *.tps \
  80.               *.vr *.vrs *.pg *.pgs *.ky *.kys
  81.  
  82. clean: mostlyclean
  83.     rm -f *.dvi *.ps
  84.     rm -f make.out core 
  85.     rm -f index.texi
  86.  
  87. # not working.
  88. #install: elisp elisp.dvi
  89. #    mv elisp elisp-* $(infodir)
  90. #    @echo also add the line for elisp to $(infodir)/dir.
  91.  
  92. # not working.
  93. #installall: install
  94. #    install -c texinfo.tex $(texmacrodir)
  95.  
  96. distclean: clean
  97. realclean: distclean
  98. extraclean: distclean
  99.     -rm -f *~ \#*
  100.  
  101. ../texindex:
  102.     (cd ..; make texindex)
  103.  
  104. # not working.
  105. #maintainer-clean: clean
  106. #    rm -f elisp elisp-*
  107.  
  108. # not working.
  109. # dist:
  110. #    -mkdir temp
  111. #    -mkdir temp/$(manual)
  112. #    -ln README Makefile permute-index $(srcs) \
  113. #   texinfo.tex getopt.c getopt1.c getopt.h \
  114. #   elisp.dvi elisp.aux elisp.??s elisp elisp-[0-9] elisp-[0-9][0-9] temp/$(manual)
  115. #    -rm -f temp/$(manual)/texindex.c temp/$(manual)/makeinfo.c
  116. #    cp texindex.c makeinfo.c temp/$(manual)
  117. #    (cd temp/$(manual); rm -f *~)
  118. #    (cd temp; tar chf - $(manual)) | gzip > $(manual).tar.gz
  119. #    -rm -rf temp
  120.  
  121. ../makeinfo:
  122.     (cd ..; make makeinfo)
  123.